<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

function smarty_function_url ($params, $smarty) {
	if (!isset($params['path'])) {
		return base_url();
	}
	return base_url($params['path']);
}